/*
*
* This file is part of xVideoServiceThief,
* an open-source cross-platform Video service download
*
* Copyright (C) 2007 - 2009 Xesc & Technology
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with xVideoServiceThief. If not, see <http://www.gnu.org/licenses/>.
*
* Contact e-mail: Xesc <xeskuu.xvst@gmail.com>
* Program URL   : http://xviservicethief.sourceforge.net/
*
*/

function RegistVideoService()
{
	this.version = "1.0.0";
	this.minVersion = "2.0.0a";
	this.author = "Xesc & Technology 2009";
	this.website = "http://blip.tv.com/";
	this.ID = "blip.tv";
	this.caption = "Blip";
	this.adultContent = false;
	this.musicSite = false;
}

function getVideoInformation(url)
{
	// video information
	var result = new VideoDefinition();
	// download webpage
	var http = new Http();
	var html = http.downloadWebpage(url);
	// Get the video title
	result.title = copyBetween(html, "<title>", "</title>");
	// get the flv url
	result.URL = copyBetween(html, "setPrimaryMediaUrl(\"", "?");
	// clear and get the final url
	result.URL = cleanUrl(result.URL);
	// return the video information
	return result;
}

function getVideoServiceIcon()
{
	return new Array(
		0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,
		0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x10,0x08,0x06,0x00,0x00,0x00,0x1f,0xf3,0xff,
		0x61,0x00,0x00,0x02,0x86,0x49,0x44,0x41,0x54,0x78,0xda,0xad,0x93,0xdd,0x4b,0x93,
		0x61,0x14,0xc0,0x5f,0xcb,0x66,0xa6,0x14,0x92,0x39,0x87,0xa9,0xb9,0x39,0x37,0xdd,
		0xd4,0x99,0xb1,0xe5,0xf2,0xb3,0x66,0x73,0xf3,0xbb,0x29,0x33,0x3f,0xe6,0xcc,0x8f,
		0x74,0xea,0xd4,0xb9,0xf9,0xb1,0xe9,0xc8,0xb0,0xa2,0x8b,0x28,0xb4,0x24,0x2a,0x8c,
		0xae,0xa2,0x2e,0x32,0x28,0xba,0xa9,0x08,0x14,0xbc,0x8a,0xee,0x92,0xe8,0x4e,0xfa,
		0x43,0x7e,0xbd,0xbe,0x13,0x45,0x19,0x74,0xd3,0x03,0x87,0x73,0x9e,0xf3,0x9c,0xf3,
		0x3b,0xcf,0xc3,0x73,0x8e,0xf0,0x5f,0x56,0xa2,0xe1,0x0e,0x09,0xfa,0xd0,0x01,0x39,
		0xa1,0x9f,0x23,0x4e,0x37,0x8f,0x2c,0x2f,0x2c,0xe9,0x78,0x71,0x7f,0x38,0x66,0x27,
		0x4f,0x02,0x48,0x09,0xb9,0x3e,0xe2,0x45,0x11,0xd4,0xd3,0x08,0x59,0x21,0x49,0x27,
		0xe9,0xc7,0x50,0x18,0x3c,0x9c,0xc9,0x1f,0x25,0x56,0x13,0x88,0xf8,0x55,0xb3,0x1c,
		0xd7,0x4e,0xee,0xc4,0x4b,0x90,0xc8,0x0d,0xf4,0xc1,0x48,0xa2,0x32,0x88,0xb9,0xb4,
		0x83,0x87,0xdd,0xe7,0xf9,0x3c,0x91,0xc6,0x86,0x3f,0x85,0xf5,0x49,0xb9,0xa4,0xbf,
		0xf9,0x14,0xac,0xf6,0xeb,0x68,0xae,0x6e,0xe2,0x58,0x4e,0x40,0x04,0x05,0xf7,0x01,
		0x82,0x7a,0x11,0xcd,0x85,0x3e,0xde,0x8f,0x66,0xf1,0x7d,0x36,0x99,0x70,0x9b,0x19,
		0xa3,0xb9,0x13,0x45,0xa1,0x87,0x64,0xb1,0xba,0xbc,0x60,0x04,0xbd,0xb1,0x87,0xa1,
		0x46,0x0b,0x5f,0x7d,0x67,0xd9,0x9c,0x4e,0xa1,0xc1,0xd2,0x8c,0x90,0xbd,0xfb,0x84,
		0xeb,0x75,0xad,0x6c,0x2f,0xc4,0xe3,0xbb,0x56,0xc5,0xd1,0xec,0x69,0x8a,0x4b,0xba,
		0x59,0x6c,0x37,0xf1,0xd6,0xa3,0xe2,0x83,0x37,0x83,0xb5,0x91,0x2c,0x1e,0xb9,0x0d,
		0xd4,0x5e,0x71,0x20,0x13,0xab,0x5b,0x2a,0xda,0xf8,0x39,0x77,0x8a,0xe5,0x3e,0x53,
		0x04,0xb0,0x39,0x93,0x4e,0xa1,0xc9,0x8d,0xa6,0xe8,0x26,0x5f,0xc4,0x0a,0xeb,0x7e,
		0x05,0xfe,0xe6,0x32,0x2a,0x4b,0x5b,0x29,0x36,0x75,0x62,0x36,0xb7,0x71,0xc3,0x5e,
		0xcd,0xda,0xb0,0x92,0x1f,0xc1,0xd3,0xb8,0x6c,0xb5,0x24,0xe9,0xc6,0xf0,0x3b,0xad,
		0x11,0x40,0x6c,0xee,0x2d,0xba,0xec,0x36,0xfe,0xdc,0x8e,0xc3,0x69,0xa9,0x27,0x51,
		0xeb,0xa7,0xd5,0xe1,0x64,0x25,0x50,0xc6,0x9b,0xb0,0x91,0xd5,0x19,0x33,0x43,0xae,
		0x46,0xe4,0x86,0x71,0xb4,0x86,0x3e,0x36,0x02,0x72,0x5e,0xf6,0x6b,0x11,0x54,0xf7,
		0x22,0x80,0x18,0xed,0x82,0xf8,0xbe,0xcb,0x14,0x5f,0xec,0xa2,0xce,0xee,0xe2,0xd7,
		0xd3,0x73,0xac,0x2d,0x14,0xd1,0xe7,0x6c,0xc2,0x6e,0xeb,0xa0,0xbd,0xb9,0x85,0xe7,
		0x01,0x33,0xbf,0x9f,0x65,0x72,0xd7,0x63,0x11,0x7f,0xc5,0xcb,0xd5,0xca,0x96,0x43,
		0xbf,0x90,0x39,0x47,0x4e,0xc9,0x20,0x5b,0x8f,0x55,0x98,0xab,0xdc,0x28,0x0a,0xbc,
		0x4c,0xb8,0xed,0x2c,0xf9,0x4a,0x09,0x0f,0x54,0xa3,0x2f,0x19,0x20,0x35,0x7f,0x8c,
		0x8f,0x8b,0x85,0xd4,0x88,0x50,0x21,0x43,0xea,0x8b,0x83,0x7d,0x70,0x52,0x37,0x4e,
		0x6c,0xf6,0x14,0xfd,0x62,0xe5,0xed,0x17,0xe9,0x3c,0xf0,0x54,0xd1,0xdb,0xe4,0x20,
		0xdc,0x63,0x65,0x6b,0x25,0x8b,0x25,0x6f,0x05,0x42,0x7a,0x88,0x38,0xcd,0x5e,0x1f,
		0x1c,0x6a,0x24,0xad,0x8f,0x18,0xd5,0x14,0x8e,0x7a,0x27,0x15,0xd5,0x5d,0xb8,0x06,
		0xed,0x2c,0x3f,0x29,0x62,0xc8,0x67,0xa1,0xa0,0xbc,0x17,0x5b,0x4d,0x07,0x32,0x31,
		0x59,0x8c,0x8b,0x0e,0x90,0x9c,0x79,0x13,0x08,0x69,0x21,0x8a,0xac,0xdd,0x7c,0x7a,
		0xad,0x64,0x78,0xb8,0x86,0x77,0xaf,0xd4,0xf4,0x0c,0xda,0x10,0x52,0xe7,0x49,0x90,
		0xe2,0xa2,0x03,0xf6,0x45,0x84,0xc4,0xaa,0x03,0x1c,0x51,0x4e,0xb1,0x74,0xbf,0x18,
		0xa3,0xb5,0x0b,0x21,0x73,0x66,0xf7,0xfc,0xdf,0x80,0xbd,0xb9,0x90,0xa9,0xfd,0x94,
		0x37,0xb4,0xa3,0xba,0x34,0x20,0xd9,0xd1,0x01,0xd1,0xa7,0x31,0x22,0xf9,0x21,0x62,
		0xd4,0xb7,0x90,0xe5,0xce,0x4b,0x76,0xb4,0x69,0xfc,0x0b,0x57,0x2a,0xa1,0xb4,0x81,
		0xda,0xf8,0xf2,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82);
}
